﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangeAddress.aspx.cs" Inherits="Liguo.Store.changeAddress" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>change address</title>
    <script src="../js/artDialog/artDialog.js" ></script>
    <script src="../js/artDialog/plugins/iframeTools.js"></script>
 <link rel="stylesheet" href="../js/artDialog/skins/simple.css" />

    <style>
        .b {
        color:#ff6a00;
        }
    </style>
    <script>    
        function okkk() {
            art.dialog.data('iframeTools', '我知道你刷新了页面～哈哈'); // plugin.iframe.html可以收到
            var win = art.dialog.open.origin;//来源页面
            // 如果父页面重载或者关闭其子对话框全部会关闭
            win.location.reload();
            return false;
        };
    </script>
    <script>
        function phone_judge(id) {
            var reg = new RegExp(/1\d{8}/);
            if (!reg.test(document.getElementById(id).value)) {
                document.getElementById(id).focus();
                alert("no");
            } else {
                alert("yeas");
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h3>修改当前地址</h3>
        <ul>
            <li>
                <span>
                    <label>选择宿舍楼：</label>
                </span><br />
                <asp:DropDownList ID="choiceCollege" runat="server" OnSelectedIndexChanged="choiceCollege_SelectedIndexChanged"
                    AutoPostBack="true">
                    <asp:ListItem Value="0">仲英书院</asp:ListItem>
                    <asp:ListItem Value="1">励志书院</asp:ListItem>
                    <asp:ListItem Value="2">南洋书院</asp:ListItem>
                    <asp:ListItem Value="3">彭康书院</asp:ListItem>
                    <asp:ListItem Value="4">崇实书院</asp:ListItem>
                    <asp:ListItem Value="5">文治书院</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="choiceBuilding" runat="server"></asp:DropDownList><br />
            </li>
            <li>
                <span>
                    <label>收货人姓名：</label>
                </span>
                <asp:TextBox ID="c_name"  runat ="server"></asp:TextBox><br />
                <script>
                    var val = art.dialog.data('name');
                    document.getElementById('c_name').value = val;
                </script>
                <asp:Label ID="nameJudge" runat="server"></asp:Label>
            </li>
            <li>
                <span>
                    <label>电话：</label><br />
                    <asp:TextBox ID="c_phoneNum"  runat ="server"></asp:TextBox>
                    <script>
                        var val = art.dialog.data('phone');
                        document.getElementById('c_phoneNum').value = val;
                    </script>
                    <asp:Label ID="phoneJudge" runat="server"></asp:Label>
                </span>
            </li>
            <li>
                <span>
                    <label>详细地址：</label><br />
                    <asp:TextBox ID="detailAddress" runat ="server" MaxLength="25" Rows="5" TextMode="MultiLine" ></asp:TextBox>
                    <script>
                        var val = art.dialog.data('detail');
                        document.getElementById('detailAddress').value = val;
                    </script>
                </span>
            </li>
        </ul>
            <asp:HiddenField ID="address" runat="server" />
            <script>
                var val = art.dialog.data('address');
                document.getElementById('address').value = val;
            </script>
    </div>
    <div>
    <span>
         <asp:Button ID="saveChange" runat="server" Text="保存修改" backgroud-color="#ff6a00" OnClick="saveChange_Click" />
         <asp:Button ID="cancel" runat ="server" Text="取消"  OnClick="cancel_Click"/>
    </span>
    </div>
    </form>
</body>
</html>
